﻿<%@ Page Title="Import members" Language="C#" MasterPageFile="~/Pages/Site.Master" AutoEventWireup="true" CodeBehind="ImportMembers.aspx.cs" Inherits="Altairis.MailToolkit.ListManager.Pages.Admin.ImportMembers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    <asp:MultiView ID="MultiViewPage" ActiveViewIndex="0" runat="server">
        <asp:View ID="ViewForm" runat="server">
            <div class="form">
                <p>
                    <asp:RadioButtonList id="ListSubscriptionType" runat="server" RepeatLayout="Flow">
                        <asp:ListItem Value="ASK" Text="require e-mail confirmation from user" Selected="True" />
                        <asp:ListItem Value="SUB" Text="directly add users" />
                    </asp:RadioButtonList>
                </p>
                <p>
                    <asp:Label runat="server" Text="E-mail addresses (one per line):" AssociatedControlID="AddressListTextBox" />
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="AddressListTextBox" Display="Dynamic" Text="*" ErrorMessage="E-mail addresses (one per line) is missing" />
                    <br />
                    <asp:TextBox ID="AddressListTextBox" runat="server" TextMode="MultiLine" Height="250px" />
                </p>
                <div class="buttons">
                    <asp:ValidationSummary runat="server" />    
                    <asp:Button ID="SubmitButton" Text="Submit" runat="server" OnClick="SubmitButton_Click" />
                </div>
            </div>
        </asp:View>
        <asp:View ID="ViewResult" runat="server">
            <table class="grid">
                <thead>
                    <tr>
                        <th style="width: 16ex"><asp:Localize runat="server" Text="Status" /></th>
                        <th style="width: 5ex"><asp:Localize runat="server" Text="Lines" /></th>
                        <th><asp:Localize runat="server" Text="Data" /></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td><asp:Localize runat="server" Text="Success" /></td>
                        <td class="r"><asp:Literal ID="LiteralSuccessCount" runat="server" Text="0" /></td>
                        <td><asp:Literal ID="LiteralSuccessData" runat="server" /></td>
                    </tr>
                    <tr>
                        <td><asp:Localize runat="server" Text="Already members" /></td>
                        <td class="r"><asp:Literal ID="LiteralSkippedCount" runat="server" Text="0" /></td>
                        <td><asp:Literal ID="LiteralSkippedData" runat="server" /></td>
                    </tr>
                    <tr>
                        <td><asp:Localize runat="server" Text="Errors" /></td>
                        <td class="r"><asp:Literal ID="LiteralErrorCount" runat="server" Text="0" /></td>
                        <td><asp:Literal ID="LiteralErrorData" runat="server" /></td>
                    </tr>
                </tbody>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
